package com.rslai.base.tool.servertest.model;

import java.io.Serializable;

public class CaseStatistics implements Serializable {
    private static final long serialVersionUID = -8000260006371137545L;
    private String job;
    private String build;
    private int sum;
    private int runSum;
    private int success;
    private int failed;
    private StringBuffer failedDescBuffer = new StringBuffer();

    public int getFailed() {
        return this.failed;
    }

    public void addFailed(String desc) {
        this.failed += 1;
        this.failedDescBuffer.append(desc).append(";");
    }

    public void addSuccess() {
        this.success += 1;
    }

    public int getRunSum() {
        return this.runSum;
    }

    public void setRunSum(int runSum) {
        this.runSum = runSum;
    }

    public int getSuccess() {
        return this.success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public int getSum() {
        return this.sum;
    }

    public void addSum(int num) {
        this.sum += num;
    }

    public void addRunSum(int num) {
        this.runSum += num;
    }

    public String getFailedIdList() {
        return this.failedDescBuffer.toString();
    }

    public String getBuild() {
        return this.build;
    }

    public void setBuild(String build) {
        this.build = build;
    }

    public String getJob() {
        return this.job;
    }

    public void setJob(String job) {
        this.job = job;
    }
}
